/*
 * DRACOON API
 * REST Web Services for DRACOON<br><br>This page provides an overview of all available and documented DRACOON APIs, which are grouped by tags.<br>Each tag provides a collection of APIs that are intended for a specific area of the DRACOON.<br><br><a title='Developer Information' href='https://developer.dracoon.com'>Developer Information</a>&emsp;&emsp;<a title='Get SDKs on GitHub' href='https://github.com/dracoon'>Get SDKs on GitHub</a><br><br><a title='Terms of service' href='https://www.dracoon.com/terms/general-terms-and-conditions/'>Terms of service</a>
 *
 * OpenAPI spec version: 4.45.1
 * 
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */

package ch.cyberduck.core.sds.io.swagger.client.model;

import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.v3.oas.annotations.media.Schema;
/**
 * Request model for updating user account information
 */
@Schema(description = "Request model for updating user account information")

public class UpdateUserAccountRequest {
  @JsonProperty("userName")
  private String userName = null;

  @JsonProperty("acceptEULA")
  private Boolean acceptEULA = null;

  @JsonProperty("firstName")
  private String firstName = null;

  @JsonProperty("lastName")
  private String lastName = null;

  @JsonProperty("email")
  private String email = null;

  @JsonProperty("phone")
  private String phone = null;

  @JsonProperty("language")
  private String language = null;

  @JsonProperty("title")
  private String title = null;

  @JsonProperty("login")
  private String login = null;

  @JsonProperty("gender")
  private String gender = "n";

  public UpdateUserAccountRequest userName(String userName) {
    this.userName = userName;
    return this;
  }

   /**
   * &amp;#128640; Since v4.13.0  Username
   * @return userName
  **/
  @Schema(description = "&#128640; Since v4.13.0  Username")
  public String getUserName() {
    return userName;
  }

  public void setUserName(String userName) {
    this.userName = userName;
  }

  public UpdateUserAccountRequest acceptEULA(Boolean acceptEULA) {
    this.acceptEULA = acceptEULA;
    return this;
  }

   /**
   * Accept EULA  Present, if EULA is system global active.  cf. &#x60;GET system/config/settings/general&#x60; - &#x60;eulaEnabled&#x60;  If accepted can not be undone.
   * @return acceptEULA
  **/
  @Schema(description = "Accept EULA  Present, if EULA is system global active.  cf. `GET system/config/settings/general` - `eulaEnabled`  If accepted can not be undone.")
  public Boolean isAcceptEULA() {
    return acceptEULA;
  }

  public void setAcceptEULA(Boolean acceptEULA) {
    this.acceptEULA = acceptEULA;
  }

  public UpdateUserAccountRequest firstName(String firstName) {
    this.firstName = firstName;
    return this;
  }

   /**
   * User first name
   * @return firstName
  **/
  @Schema(description = "User first name")
  public String getFirstName() {
    return firstName;
  }

  public void setFirstName(String firstName) {
    this.firstName = firstName;
  }

  public UpdateUserAccountRequest lastName(String lastName) {
    this.lastName = lastName;
    return this;
  }

   /**
   * User last name
   * @return lastName
  **/
  @Schema(description = "User last name")
  public String getLastName() {
    return lastName;
  }

  public void setLastName(String lastName) {
    this.lastName = lastName;
  }

  public UpdateUserAccountRequest email(String email) {
    this.email = email;
    return this;
  }

   /**
   * Email 
   * @return email
  **/
  @Schema(description = "Email ")
  public String getEmail() {
    return email;
  }

  public void setEmail(String email) {
    this.email = email;
  }

  public UpdateUserAccountRequest phone(String phone) {
    this.phone = phone;
    return this;
  }

   /**
   * Phone number
   * @return phone
  **/
  @Schema(description = "Phone number")
  public String getPhone() {
    return phone;
  }

  public void setPhone(String phone) {
    this.phone = phone;
  }

  public UpdateUserAccountRequest language(String language) {
    this.language = language;
    return this;
  }

   /**
   * &amp;#128640; Since v4.20.0  IETF language tag
   * @return language
  **/
  @Schema(description = "&#128640; Since v4.20.0  IETF language tag")
  public String getLanguage() {
    return language;
  }

  public void setLanguage(String language) {
    this.language = language;
  }

  public UpdateUserAccountRequest title(String title) {
    this.title = title;
    return this;
  }

   /**
   * &amp;#128679; Deprecated since v4.18.0  Job title
   * @return title
  **/
  @Schema(description = "&#128679; Deprecated since v4.18.0  Job title")
  public String getTitle() {
    return title;
  }

  public void setTitle(String title) {
    this.title = title;
  }

  public UpdateUserAccountRequest login(String login) {
    this.login = login;
    return this;
  }

   /**
   * &amp;#128679; Deprecated since v4.13.0  User login name
   * @return login
  **/
  @Schema(description = "&#128679; Deprecated since v4.13.0  User login name")
  public String getLogin() {
    return login;
  }

  public void setLogin(String login) {
    this.login = login;
  }

  public UpdateUserAccountRequest gender(String gender) {
    this.gender = gender;
    return this;
  }

   /**
   * &amp;#128679; Deprecated since v4.12.0  Gender  Do NOT use &#x60;gender&#x60;! It will be ignored.
   * @return gender
  **/
  @Schema(description = "&#128679; Deprecated since v4.12.0  Gender  Do NOT use `gender`! It will be ignored.")
  public String getGender() {
    return gender;
  }

  public void setGender(String gender) {
    this.gender = gender;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    UpdateUserAccountRequest updateUserAccountRequest = (UpdateUserAccountRequest) o;
    return Objects.equals(this.userName, updateUserAccountRequest.userName) &&
        Objects.equals(this.acceptEULA, updateUserAccountRequest.acceptEULA) &&
        Objects.equals(this.firstName, updateUserAccountRequest.firstName) &&
        Objects.equals(this.lastName, updateUserAccountRequest.lastName) &&
        Objects.equals(this.email, updateUserAccountRequest.email) &&
        Objects.equals(this.phone, updateUserAccountRequest.phone) &&
        Objects.equals(this.language, updateUserAccountRequest.language) &&
        Objects.equals(this.title, updateUserAccountRequest.title) &&
        Objects.equals(this.login, updateUserAccountRequest.login) &&
        Objects.equals(this.gender, updateUserAccountRequest.gender);
  }

  @Override
  public int hashCode() {
    return Objects.hash(userName, acceptEULA, firstName, lastName, email, phone, language, title, login, gender);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class UpdateUserAccountRequest {\n");
    
    sb.append("    userName: ").append(toIndentedString(userName)).append("\n");
    sb.append("    acceptEULA: ").append(toIndentedString(acceptEULA)).append("\n");
    sb.append("    firstName: ").append(toIndentedString(firstName)).append("\n");
    sb.append("    lastName: ").append(toIndentedString(lastName)).append("\n");
    sb.append("    email: ").append(toIndentedString(email)).append("\n");
    sb.append("    phone: ").append(toIndentedString(phone)).append("\n");
    sb.append("    language: ").append(toIndentedString(language)).append("\n");
    sb.append("    title: ").append(toIndentedString(title)).append("\n");
    sb.append("    login: ").append(toIndentedString(login)).append("\n");
    sb.append("    gender: ").append(toIndentedString(gender)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}
